package com.whfc.base.param;

import com.whfc.entity.param.SearchParam;
import lombok.Data;

import java.util.List;

/**
 * @author: sun
 * @version: v1.0.0
 * @since 2022/8/2
 */
@Data
public class WarnMsgSearchParam extends SearchParam {

    /**
     * 1-已读 0-未读
     */
    private Integer state;

    /**
     * 报警类型 1-设备报警 2-人员报警 4-环境报警 5-智能监控报警 6-特种设备报警 8-质量报警 9-安全报警
     */
    private Integer moduleType;

    /**
     * 消息渠道
     *
     * @see com.whfc.common.enums.AppWarnMsgChannel
     */
    private Integer msgChannel;

    /**
     * 项目ID集合
     */
    private List<Integer> deptIds;

    /**
     * 用户ID
     */
    private Integer userId;

    @Override
    public String toString() {
        return "WarnMsgSearchParam{" +
                "state=" + state +
                ", moduleType=" + moduleType +
                ", msgChannel=" + msgChannel +
                ", deptIds=" + deptIds +
                ", userId=" + userId +
                "} " + super.toString();
    }
}
